<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmCalificacionesABM.aspx.vb" Inherits="TGB.FrmCalificacionesABM" 
    title="Administracion de Calificaciones" %>

<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div id="DIV1" style="width: 100%; height: 24px; text-align: left; background-color: #ccccff;" >
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Administracion de Calificaciones" Font-Underline="False" Height="18px" Width="277px"></asp:Label></div><hr /> 
    <div style="width: 100%; height: 133px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 419px; height: 80px; text-align: center;" >
        <tr>
            <td align="right" style="width: 25%; height: 14px;">
                Provincia:</td>
            <td style="width: 28%; height: 14px;" align="left" ><asp:DropDownList ID="cboProvincia" runat="server" CssClass="CampoCbo" Width="113px" AutoPostBack="True" AppendDataBoundItems="True">
            </asp:DropDownList></td>
            <td align="right" style="width: 25%; height: 14px;">
                Localidad:</td>
            <td style="height: 14px; width: 27%;" align="left" ><asp:DropDownList ID="cboLocalidad" runat="server" CssClass="CampoCbo" Width="280px" AppendDataBoundItems="True" Height="24px">
            </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right" style="width: 25%; height: 16px;">
                Nombre:</td>
            <td style="width: 28%; height: 16px;" align="left" >
                <asp:TextBox ID="TxtNombre" runat="server" CssClass="campotxt" MaxLength="200"></asp:TextBox></td>
            <td align="right" style="width: 25%; height: 16px;">
                Ente:</td>
            <td style="height: 16px; width: 27%;" align="left" >
                <asp:DropDownList ID="CboEnte" runat="server" CssClass="CampoCbo" Width="280px" AppendDataBoundItems="True">
            </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right" style="width: 25%; height: 20px;">
                Identificacion:</td>
            <td style="width: 28%; height: 20px;" align="left" >
                <asp:TextBox ID="TxtIdentificacion" runat="server" CssClass="campotxt" MaxLength="50"></asp:TextBox></td>
            <td align="right" style="width: 25%; height: 20px;">
                Fecha
                Alta:</td>
            <td style="width: 27%; height: 20px;" align="left" >
                <bdp:basicdatepicker id="BDPFechaAlta" runat="server" dateformat="dd/MM/yyyy" displaytype="LabelAndImage"
                    nonebuttontext="Nada" todaybuttontext="Hoy">
                    <TextBoxStyle CssClass="campotxt"  />
                </bdp:basicdatepicker>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 25%">
                Observacion:</td>
            <td align="left" colspan="3">
                <asp:TextBox ID="TxtObservacion" runat="server" CssClass="campotxt" Width="456px" MaxLength="200" Height="64px" TextMode="MultiLine"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="center" colspan="4" style="height: 21px">
                <asp:HiddenField ID="HFCodigoCalificacion" runat="server" />
                <asp:LinkButton ID="LnkGuardar" runat="server" CssClass="BotonLink">Guardar</asp:LinkButton> /
                <asp:LinkButton ID="LnkEliminar" runat="server" CssClass="BotonLink">Eliminar</asp:LinkButton> /
                <asp:LinkButton ID="LnkBuscar" runat="server" CssClass="BotonLink">Buscar</asp:LinkButton> /
                <asp:LinkButton ID="LnkCancelar" runat="server" CssClass="BotonLink">Cancelar</asp:LinkButton>
            
            </td>
        </tr>
        
    </table>
        <asp:Label ID="LblError" runat="server" Font-Bold="True" ForeColor="#C00000" CssClass="LabelError"></asp:Label><br />
        </div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef">
        <asp:GridView ID="GridCalificaciones" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC"
            BorderWidth="1px" CellPadding="4" CssClass="Grid"
            ForeColor="Black" GridLines="Horizontal" Style="width: 100%" Width="812px" BorderStyle="None">
            <PagerSettings PageButtonCount="25" />
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        &nbsp;<asp:LinkButton ID="LnkSeleccionar" runat="server" CommandName="Select" >Ver</asp:LinkButton>
                        <asp:HiddenField ID="HFId" runat="server" Value='<%# Bind("codigoCalificacion") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nombre">
                    <ItemTemplate>
                        <asp:Label ID="LblNombre" runat="server" Text='<%# Bind("Nombre") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Identificacion">
                    <ItemTemplate>
                        <asp:Label ID="LblIdentificacion" runat="server" Text='<%# Bind("Identificacion") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ente">
                    <ItemTemplate>
                        <asp:HiddenField ID="HFEnte" runat="server" Value='<%# Bind("CodigoEnte") %>' />                    
                        <asp:Label ID="LblEnte" runat="server" Text='<%# Bind("DescripcionEnte") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Alta">
                    <ItemTemplate>
                        <asp:Label ID="LblFechaAlta" runat="server" Text='<%# Bind("FechaAlta") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Localidad">
                    <ItemTemplate>
                        <asp:HiddenField ID="HFLocalidad" runat="server" Value='<%# Bind("Codigolocalidad") %>' />
                        <asp:Label ID="LblLocalidad" runat="server" Text='<%# Bind("Descripcionlocalidad") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Observacion">
                    <ItemTemplate>
                        <asp:HiddenField ID="HFObservacion" runat="server" Value='<%# Bind("Observacion") %>' />
                        <asp:LinkButton ID="LnkObservacion" runat="server" CommandName="Observacion" OnClick="LnkObservacion_Click"  >Observaciones</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <SelectedRowStyle BackColor="#CC3333" ForeColor="White" Font-Bold="True" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    </div>


</asp:Content>
